import { ObjCreate } from "../common/ObjCreate";
import { HTMLUtil } from "../../../../com/gengine/utils/HTMLUtil";
import { CareerUtil } from "../common/util/CareerUtil";
import { Language } from "../../../../extend/language/Language";
import { GlobalStyle } from "../../../common/global/GlobalStyle";
import { GTextFiled } from "../../../../com/mui/controls/GTextFiled";
type int = number;
//class ArenaTeammateWarfareSp
    
    export  class ArenaTeammateWarfareSp /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.initUI();
            return;
        }

        protected initUI(): void
        {
            ObjCreate.createBg(0, 0, 130, 20, this);
            this._career = ObjCreate.createGTextField("", 5, 0, 100, 20, this);
            this._career.autoSize = flash.text.TextFieldAutoSize.LEFT;
            this._warfare = ObjCreate.createGTextField("", 40, 0, 100, 20, this);
            this._warfare.autoSize = flash.text.TextFieldAutoSize.LEFT;
            return;
        }

        public updateData(arg1: int, arg2: string): void
        {
            this._career.htmlText = HTMLUtil.addColor(CareerUtil.getCareerName(arg1), "#FFFF00");
            this._warfare.htmlText = HTMLUtil.addColor(Language.getString(69911), GlobalStyle.color1) + HTMLUtil.addColor(arg2, "#FFFF00");
            return;
        }

        /* internal */ /* var */_career: GTextFiled;

        /* internal */ /* var */_warfare: GTextFiled;
    }
